<?php

/**
 * SupportNote form base class.
 *
 * @package    wifilez
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseSupportNoteForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'support_note_id'    => new sfWidgetFormInputHidden(),
      'support_request_id' => new sfWidgetFormPropelChoice(array('model' => 'SupportRequest', 'add_empty' => true)),
      'created'            => new sfWidgetFormDateTime(),
      'modified'           => new sfWidgetFormDateTime(),
      'content'            => new sfWidgetFormTextarea(),
    ));

    $this->setValidators(array(
      'support_note_id'    => new sfValidatorPropelChoice(array('model' => 'SupportNote', 'column' => 'support_note_id', 'required' => false)),
      'support_request_id' => new sfValidatorPropelChoice(array('model' => 'SupportRequest', 'column' => 'support_request_id', 'required' => false)),
      'created'            => new sfValidatorDateTime(array('required' => false)),
      'modified'           => new sfValidatorDateTime(array('required' => false)),
      'content'            => new sfValidatorString(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('support_note[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'SupportNote';
  }


}
